#import <React/RCTBridgeModule.h>

@interface TencentCos : NSObject <RCTBridgeModule>

- (void)upload:(NSString *)originLocalPath
                    CosPath:(NSString *)originCosPath
                    resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject;

- (void)uploadWithName:(NSString *)originLocalPath
                    CosPath:(NSString *)originCosPath
                    resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject;

- (void)initCosService:(NSString *)appid
                    Bucket:(NSString *)bucket
                    Region:(NSString *)region
                    Cookie:(NSString *)cookie
                    SignUrl:(NSString*)signUrl
                    SystemId:(NSInteger)systemId
                    resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject;
@end
